import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import EleUi from './Elementui/elementui'

import axios from 'axios';
Vue.prototype.$axios = axios;

Vue.config.productionTip = false

import http from "./api/http";
Vue.prototype.$http = http

import detail from "./api/detail";
Vue.prototype.$detail = detail

import VueLazyload from 'vue-lazyload'


Vue.use(VueLazyload, {
  preLoad: 1, //预加载的宽高比
  loading: require('@/assets/load.webp'), //图片加载状态下显示的图片
  error: require('@/assets/error.webp'), //图片加载失败时显示的图片
  attempt: 2, // 加载错误后最大尝试次数
})

new Vue({
  router,
  store,
  EleUi,
  el: '#app',
  render: h => h(App)
}).$mount('#app')
